<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div class="data_list">
	<div class="data_list_title">
		<img src="${pageContext.request.contextPath}/images/list_icon.png" />
		日记列表
		<div class="diary_datas">
			<ul>
				<c:forEach var="diray" items="${pageBean.data }">
					<li>『<fmt:formatDate value="${diray.releaseTime  }"
							type="date" pattern="yyyy-MM-dd HH:mm:ss" />』<span>&nbsp;<a
							href="${pageContext.request.contextPath }/diray?method=show&dirayId=${diray.dirayId}">${diray.dirayName }</a></span></li>
				</c:forEach>
			</ul>
		</div>
	</div>

	<div class="pagination pagination-centered pagination-large">
		<ul>
			<li><a href="${pageContext.request.contextPath }/main?page=1&f_dirayTypeId=${param.f_dirayTypeId}&year=${param.year }&month=${param.month}&f_dirayName=${param.f_dirayName}">首页</a></li>
			<c:if test="${pageBean.pageNumber == 1 }">
				<li class="disabled"><span>&laquo;</span></li>
			</c:if>
			<c:if test="${pageBean.pageNumber != 1 }">
				<li><a href="${pageContext.request.contextPath }/main?page=${pageBean.pageNumber - 1}&f_dirayTypeId=${param.f_dirayTypeId}&year=${param.year }&month=${param.month}&f_dirayName=${param.f_dirayName}">&laquo;</a></li>
			</c:if>
			
			<c:forEach varStatus="statu" begin="1" end="${pageBean.totalPage }" step="1">
				<c:if test="${pageBean.pageNumber == statu.count }">
					<li class="active"><span>${statu.count }</span></li>
				</c:if>
				<c:if test="${pageBean.pageNumber != statu.count}">
					<li><a href="${pageContext.request.contextPath }/main?page=${statu.count}&f_dirayTypeId=${param.f_dirayTypeId}&year=${param.year }&month=${param.month}&f_dirayName=${param.f_dirayName}">${statu.count }</a></li>
				</c:if>
			</c:forEach>
			
			<c:if test="${pageBean.pageNumber == pageBean.totalPage}">
				<li class="disabled"><span>&raquo;</span></li>
			</c:if>
			<c:if test="${pageBean.pageNumber != pageBean.totalPage}">
				<li><a href="${pageContext.request.contextPath }/main?page=${pageBean.pageNumber + 1}&f_dirayTypeId=${param.f_dirayTypeId}&year=${param.year }&month=${param.month}&f_dirayName=${param.f_dirayName}">&raquo;</a></li>
			</c:if>
			<li><a href="${pageContext.request.contextPath }/main?page=${pageBean.totalPage}&f_dirayTypeId=${param.f_dirayTypeId}&year=${param.year }&month=${param.month}&f_dirayName=${param.f_dirayName}">尾页</a></li>
		</ul>
	</div>
</div>
